<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>角色信息设置</title>
    <script>
        var requireExtraPaths = {
            extrance: '../../../system_js/sysRoleSet'
        };
    </script>
    <jsp:include flush="true" page="../base/base.jsp"></jsp:include>
</head>
<body>
<section class="main-container">
    <!-- construct tree start -->
    <article class="construct-tree construct-tree2" id="leftbox">
        <div class="title-bar clearfix">


            <div class="tree-search clearfix">
                <input type="text" class="input-text" placeholder="搜索" style="width: 80px;" id="search-text">
                <span class="icon"></span>
            </div>
        </div>
        <a class="add-user" id="addNew">+新增角色</a>

        <div class="tree-area" style="min-height: 200px; overflow: auto;">
            <ul class="ztree" id="sysRoleTree">
            </ul>
        </div>
        <%--<div class="slide-panel"></div>--%>
    </article>
    <article class="site-col-extra" id="rightbox">
        <div class="user-info-wrap">
            <div class="user-info-box">
            <form name="roleForm" id="roleForm" class="pr-s">
                <h2 class="title-style1"><span>角色信息</span></h2>
                <input type="hidden" name="id" id="id" class="u-input"/>
                <ul class="form-grid form-grid2 clearfix">
                    <%--<li>
                        <label class="label-text label-require">角色编码：</label>
                        <input id="code" name="code" class="input-text" data-validator="{charNum:true}" maxlength="8"
                               placeholder="最大长度为16个字符"/>
                    </li>--%>
                    <li>
                        <label class="label-text label-require"><span class="red-star">*</span>角色名称：</label>
                        <input id="name" name="name" class="input-text" data-validator="{required:true,maxLength:32}" maxlength="32"
                               placeholder="请输入角色名称"/>
                    </li>
                    <li>
                        <label class="label-text label-require"><span class="red-star">*</span>上级角色：</label>
                        <input type="hidden" id="parentRoleId" name="parentRoleId"/>
                        <input type="text" id="parentRoleName" name="parentRoleName" class="input-text" value=""
                               disabled="disabled" data-validator="{required:true}"/>
                    </li>
                    <li id="corpli" style="display: none;">
                        <label class="label-text label-require"><span class="red-star">*</span>所属企业：</label>
                        <input type="hidden" id="corpId" name="corpId"/>
                        <input id="corpName" name="corpName" class="input-text" user-type="treeDialog"
                               data-options="{url:'/sysCorpInfo/getCorpTree.htm',name:'corpName',idKey:'corpId',pIdKey:'parentCorpId'}"/>
                    </li>
                    <li style="display: none;" id="roleTypeli">
                        <label class="label-text"><span class="red-star">*</span>角色类型：</label>
                        <select id="roleType" name="roleType" dict="ROLT0000" class="u-input" style="width: 187px;" data-validator="{required:true}">
                        </select>
                    </li>
                    <li class="li-textarea mb0">
                        <label class="label-text vt">备注：</label>
                        <textarea id="remark" name="remark" cols="30" rows="4" maxlength="250" data-validator="{maxLength:250}"
                                  placeholder="请输入备注信息" style="height: 70px;"></textarea>
                    </li>
                </ul>
            </form>
            </div>
            <div class="user-btn-box">
                <a id="save" class="btn btn-save btn-medium" data-authority="a9db95f8f9c948cc93fab6636d4812e4">保存</a>
            <a id="del" class="btn btn-cancel btn-medium" data-authority="9f3917bf609b4d9a888a1ba088f582b0">删除</a>
            <!-- <a id="save" class="save" href="javascript:;">保存</a>
            <a href="javascript:;" class="save" id="save" style="display: none" data-authority="6fddd1a8ec714ca8a97f4fa58f2204cb">保存</a>
            <a href="javascript:;" class="del" id="delete" style="display: none" data-authority="60ba6440028c4da6835596ddc96dab72">删除</a>   -->
            </div>
        </div>
    </article>
</section>
</body>
</html>        